#coding:utf-8
'''
Created on 2014年9月10日

@author: loseair123
'''

try:
    import cPickle as pickle
except ImportError:
    import pickle
    
class Student():
    def __init__(self,name,age,sex):
        self._name=name
        self._age=age
        self._sex=sex

s=Student('eko',22,'male')
f=open('./test.txt','rb')
#pickle.dump(s,f)

s2=pickle.load(f)
print s2.name
f.close()